<{$setting.aa}>
<div class="tableform widgetconfig">
<div class="division">

  <table>
  
    <tr> 
      <th><{t app='b2c'}>显示订单<{/t}></th>
      <td><{input  name="rowNum" value=$setting.rowNum|default:20 size=5}> 条</td>
    </tr>
    <tr> 
      <th><{t app='b2c'}>显示小图标<{/t}></th>
      <td><div id="showPic"></div>
		<{if $setting.smallPic}>		
		<select name="smallPic" id="smallPic" onchange="choosePic()">
		<{foreach from=$setting.small_pics item=pic key=key}>
			<option value="<{$key}>"<{if $setting.smallPic == $key}>selected="selected"<{/if}>><{$pic}></option>
		<{/foreach}>
		</select>
		<{/if}>
        <div id="pic_add" style="display: none"> <{t app='b2c'}>图片地址：<{/t}>
         <{input  name="picaddress" value=$setting.picaddress}>
        </div></td>
		</tr>
      <tr> 
      <th><{t app='b2c'}>显示高度<{/t}></th>
      <td><{input name="height" value=$setting.height|default:126 size=5 required="true" type="digits"}></td>
    </tr>
    <tr>
      <th><{t app='b2c'}>滚动速度<{/t}></th>
      <td><select name="roll_speed"><option value=200 <{if $setting.roll_speed==200}>selected<{/if}>><{t app='b2c'}>快<{/t}></option><option value=500 <{if $setting.roll_speed==500}>selected<{/if}>><{t app='b2c'}>普通<{/t}></option><option value=800 <{if $setting.roll_speed==800}>selected<{/if}>><{t app='b2c'}>慢<{/t}></option></select></td>
    </tr>
     <tr>
      <th><{t app='b2c'}>每次滚动条数<{/t}></th>
      <td>
      <input type="text" name="steps" value="<{$setting.steps|default:1}>" />
    </tr>

  </table>
  </div>
</div>
<script>
choosePic=function(){
  var vol=$('smallPic').value;
  $('pic_add').style.display="none";
  switch(vol){
    case '':
    $('showPic').innerHTML='';
    break;
    case '6':
    $('pic_add').style.display="";
    $('showPic').innerHTML="";
    break;
    default:
    $('showPic').innerHTML="<img src='<{$setting.res_url}>/icons/"+vol+"'>";
    break;
  }
}
choosePic();
</script>